package com.endava.AssignmentsOperationsPresentation;

public class Ex2 {

	public static void main(String[] args) {
		int i = 10;
		int n = i++ % 5; // i will be incremented after
							// expression (i++), so n=0;
		System.out.println(n);
		System.out.println(i);


		i = 10;
		n = ++i % 5; // in this case the expression (++i)
						// will be i+1 int the evaluation of n
		System.out.println(n);
		System.out.println(i);

		i = (i++);
		System.out.println(i);
	}

}
